package com.udata.server.dao;

import java.util.List;

import com.google.appengine.api.datastore.Key;
import com.udata.server.dao.impl.StokeDaoImpl;
import com.udata.shared.exception.OperationException;
import com.udata.shared.model.StokeB;

public abstract class StokeDao {
	private static StokeDao instance = null;

	public abstract StokeB save(StokeB stokeB) throws OperationException;

	public abstract StokeB load(Key id) throws OperationException;

	public abstract List<StokeB> getAll();

	public static StokeDao getInstace() {
		if (instance == null) {
			instance = new StokeDaoImpl();
		}
		return instance;
	}

}
